@(value : String  = "",
  prefix: String  = "",
  mini  : Boolean = true,
  style : String  = "",
  right : Boolean = false,
  flat  : Boolean = false)(body: Html)
<div class="btn-group" @if(style.nonEmpty){style="@style"}>
  <button
      @if(flat){style="border: none; background-color: #eee;"}
      class="dropdown-toggle @if(!flat){btn} else {flat} @if(mini){btn-mini} else {btn-small}" data-toggle="dropdown">
    @if(value.isEmpty){
      <i class="icon-cog"></i>
    } else {
      @if(prefix.nonEmpty){
        <span class="muted">@prefix:</span>
      }
      <span class="strong">@value</span>
    }
    <span class="caret"></span>
  </button>
  <ul class="dropdown-menu@if(right){ pull-right}">
    @body
  </ul>
</div>
